package cn.ztelovecly.springboot.contract.request;

import cn.ztelovecly.springboot.framework.base.BaseRequest;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotNull;

/**
 * Created by zhaotianen on 2017/2/18.
 */
public class UserCreateRequest extends BaseRequest {
    /**
     * 名称
     */
    @Length(min = 6,max = 100,message = "长度范围6-100")
    @NotNull(message = "名称不能为空")
    private String name;

    /**
     * 密码
     */
    @Length(min = 6,max = 100,message = "长度范围6-100")
    @NotNull(message = "密码不能为空")
    private String password;


    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }
}
